.class Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$16;
.super Ljava/lang/Object;
.source "NiceAppCommentDetailActivity.java"

# interfaces
.implements Lretrofit/Callback;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->requestMoreComments()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lretrofit/Callback",
        "<",
        "Lorg/json/JSONObject;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;)V
    .registers 2
    .param p1, "this$0"    # Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;

    .prologue
    .line 514
    iput-object p1, p0, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$16;->this$0:Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public failure(Lretrofit/RetrofitError;)V
    .registers 4
    .param p1, "arg0"    # Lretrofit/RetrofitError;

    .prologue
    .line 518
    iget-object v0, p0, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$16;->this$0:Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;

    # getter for: Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->mLoadingBar:Landroid/widget/ProgressBar;
    invoke-static {v0}, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->access$600(Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;)Landroid/widget/ProgressBar;

    move-result-object v0

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/ProgressBar;->setVisibility(I)V

    .line 519
    return-void
.end method

.method public bridge synthetic success(Ljava/lang/Object;Lretrofit/client/Response;)V
    .registers 3

    .prologue
    .line 514
    check-cast p1, Lorg/json/JSONObject;

    invoke-virtual {p0, p1, p2}, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$16;->success(Lorg/json/JSONObject;Lretrofit/client/Response;)V

    return-void
.end method

.method public success(Lorg/json/JSONObject;Lretrofit/client/Response;)V
    .registers 10
    .param p1, "arg0"    # Lorg/json/JSONObject;
    .param p2, "arg1"    # Lretrofit/client/Response;

    .prologue
    const/16 v6, 0x8

    const/4 v2, 0x1

    const/4 v3, 0x0

    .line 523
    iget-object v1, p0, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$16;->this$0:Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;

    # operator++ for: Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->mCurPage:I
    invoke-static {v1}, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->access$2108(Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;)I

    .line 524
    iget-object v1, p0, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$16;->this$0:Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;

    # getter for: Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->mCurPage:I
    invoke-static {v1}, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->access$2100(Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;)I

    move-result v1

    if-ne v1, v2, :cond_1a

    .line 525
    iget-object v1, p0, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$16;->this$0:Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;

    # getter for: Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->mCommentDetails:Ljava/util/List;
    invoke-static {v1}, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->access$1500(Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/List;->clear()V

    .line 527
    :cond_1a
    const-string v1, "replys"

    invoke-virtual {p1, v1}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v1

    invoke-static {v1}, Lcom/brixd/niceapp/model/CommentModel;->parseCommentModels(Lorg/json/JSONArray;)Ljava/util/ArrayList;

    move-result-object v0

    .line 528
    .local v0, "comments":Ljava/util/List;, "Ljava/util/List<Lcom/brixd/niceapp/model/CommentModel;>;"
    iget-object v1, p0, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$16;->this$0:Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;

    # getter for: Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->mCommentDetails:Ljava/util/List;
    invoke-static {v1}, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->access$1500(Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1, v0}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 529
    iget-object v1, p0, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$16;->this$0:Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;

    # getter for: Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->mAdapter:Lcom/brixd/niceapp/activity/fragment/adapter/CommentDetailAdapter;
    invoke-static {v1}, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->access$1700(Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;)Lcom/brixd/niceapp/activity/fragment/adapter/CommentDetailAdapter;

    move-result-object v1

    invoke-virtual {v1}, Lcom/brixd/niceapp/activity/fragment/adapter/CommentDetailAdapter;->notifyDataSetChanged()V

    .line 531
    iget-object v1, p0, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$16;->this$0:Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;

    # getter for: Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->mCurPage:I
    invoke-static {v1}, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->access$2100(Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;)I

    move-result v1

    if-ne v1, v2, :cond_47

    .line 532
    iget-object v1, p0, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$16;->this$0:Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;

    # getter for: Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->mListView:Landroid/widget/ListView;
    invoke-static {v1}, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->access$2200(Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;)Landroid/widget/ListView;

    move-result-object v1

    invoke-virtual {v1, v3}, Landroid/widget/ListView;->setSelection(I)V

    .line 535
    :cond_47
    iget-object v4, p0, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$16;->this$0:Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;

    const-string v1, "has_next"

    invoke-virtual {p1, v1}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v1

    if-eqz v1, :cond_97

    move v1, v2

    :goto_52
    # setter for: Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->mHasMoreComments:Z
    invoke-static {v4, v1}, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->access$502(Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;Z)Z

    .line 536
    iget-object v1, p0, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$16;->this$0:Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;

    # getter for: Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->mHasMoreComments:Z
    invoke-static {v1}, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->access$500(Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;)Z

    move-result v1

    if-eqz v1, :cond_99

    .line 537
    iget-object v1, p0, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$16;->this$0:Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;

    # getter for: Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->mLoadingTxt:Landroid/widget/TextView;
    invoke-static {v1}, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->access$2300(Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;)Landroid/widget/TextView;

    move-result-object v1

    iget-object v4, p0, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$16;->this$0:Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;

    const v5, 0x7f0c0100

    invoke-virtual {v4, v5}, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 538
    iget-object v1, p0, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$16;->this$0:Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;

    # getter for: Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->mShowMore:Landroid/view/View;
    invoke-static {v1}, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->access$700(Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1, v2}, Landroid/view/View;->setEnabled(Z)V

    .line 539
    iget-object v1, p0, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$16;->this$0:Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;

    # getter for: Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->mFooterContent:Landroid/view/View;
    invoke-static {v1}, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->access$2400(Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/View;->getVisibility()I

    move-result v1

    if-eqz v1, :cond_8d

    .line 540
    iget-object v1, p0, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$16;->this$0:Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;

    # getter for: Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->mFooterContent:Landroid/view/View;
    invoke-static {v1}, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->access$2400(Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1, v3}, Landroid/view/View;->setVisibility(I)V

    .line 551
    :cond_8d
    :goto_8d
    iget-object v1, p0, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$16;->this$0:Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;

    # getter for: Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->mLoadingBar:Landroid/widget/ProgressBar;
    invoke-static {v1}, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->access$600(Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;)Landroid/widget/ProgressBar;

    move-result-object v1

    invoke-virtual {v1, v6}, Landroid/widget/ProgressBar;->setVisibility(I)V

    .line 553
    return-void

    :cond_97
    move v1, v3

    .line 535
    goto :goto_52

    .line 544
    :cond_99
    iget-object v1, p0, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$16;->this$0:Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;

    # getter for: Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->mLoadingTxt:Landroid/widget/TextView;
    invoke-static {v1}, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->access$2300(Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;)Landroid/widget/TextView;

    move-result-object v1

    iget-object v2, p0, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$16;->this$0:Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;

    const v4, 0x7f0c00b3

    invoke-virtual {v2, v4}, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 545
    iget-object v1, p0, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$16;->this$0:Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;

    # getter for: Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->mShowMore:Landroid/view/View;
    invoke-static {v1}, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->access$700(Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1, v3}, Landroid/view/View;->setEnabled(Z)V

    .line 546
    iget-object v1, p0, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$16;->this$0:Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;

    # getter for: Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->mFooterContent:Landroid/view/View;
    invoke-static {v1}, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->access$2400(Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/View;->getVisibility()I

    move-result v1

    if-eq v1, v6, :cond_8d

    .line 547
    iget-object v1, p0, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$16;->this$0:Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;

    # getter for: Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->mFooterContent:Landroid/view/View;
    invoke-static {v1}, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->access$2400(Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1, v6}, Landroid/view/View;->setVisibility(I)V

    goto :goto_8d
.end method
